
function onepanel1(flg){
    var eng=["COURSE<br>CONTROL","TRACK<br>CONTROL","YAWING","RUDDER","COUNTER<br>RUDDER","RUDDER<br>LIMIT","DIMMER<br>+","DIMMER<br>-","OFF<br>COURSE","OFF<br>TRACK","RADIUS","GYRO<br>MAGN","ALARM<br>ACK","COURSE<br>SET","AUTO<br>PILOT","PARA<br>SET","FOLLOW<br>UP","NFU","PORT","STBD","GYRO","HEADING","MAGNETIC","SETTING","STEERING&nbsp;SYSTEM","./img/chuanduo/ROT.png","./img/chuanduo/RUD-ANGLE.png","img/chuanduo/HELM.png"];
    var chn=["航向<br>控制","轨迹<br>控制","偏航","舵角","压舵","舵角控制","调光<br>+", "调光<br>-","航向<br>偏移量","航迹<br>偏移量","界限","电/磁<br>罗经","报警<br>确认","航向<br>设置","自动舵","参数<br>设置","手动舵","应急舵","左","右","电罗经","船首向","磁罗经","设置","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;转&nbsp;&nbsp;向&nbsp;&nbsp;系&nbsp;&nbsp;统&nbsp;","./img/chuanduo/chn/ROT.png","./img/chuanduo/chn/RUD-ANGLE.png","img/chuanduo/chn/HELM.png"];
    var temp=[];
    switch(flg){
    case "Eng":temp=eng;break;
    case "CHN":temp=chn;break;
    }
//button
document.getElementById("course_control").innerHTML = temp[0];
document.getElementById("track_control").innerHTML = temp[1];
document.getElementById("yawing").innerHTML = temp[2];
document.getElementById("rudder").innerHTML = temp[3];
document.getElementById("cdunter_rudder").innerHTML = temp[4];
document.getElementById("rudder_limit").innerHTML = temp[5];
document.getElementById("dimmer_add").innerHTML = temp[6];
document.getElementById("dimmer_decrease").innerHTML = temp[7];
document.getElementById("off_course").innerHTML = temp[8];
document.getElementById("off_track").innerHTML = temp[9];
document.getElementById("radius").innerHTML = temp[10];
document.getElementById("gyrd_wagin").innerHTML = temp[11];
document.getElementById("alarm_ack").innerHTML = temp[12];
document.getElementById("course_set").innerHTML = temp[13];
document.getElementById("auto_pilot").innerHTML = temp[14];
document.getElementById("papa_set").innerHTML = temp[15];
document.getElementById("follow_up").innerHTML = temp[16];
document.getElementById("nfu").innerHTML = temp[17];
document.getElementById("port_1").innerHTML = temp[18];
document.getElementById("stbd_1").innerHTML = temp[19];
document.getElementById("port_2").innerHTML = temp[18];
document.getElementById("stbd_2").innerHTML = temp[19];



//text
document.getElementById("GYRO").innerHTML = temp[20];
document.getElementById("HEADING").innerHTML = temp[21];
document.getElementById("MAGNETIC").innerHTML = temp[22];
document.getElementById("SETTING").innerHTML = temp[23];
document.getElementById("title1").innerHTML = temp[24];

//image

document.getElementById("rotimg").src=temp[25];
document.getElementById("rudimg").src=temp[26];
document.getElementById("helmimg").src=temp[27];
temp.length=0;
}




function onepanel2(flg){
var eng=["CONTROLS<br>MODE","FULL","CLUTCH<br>IN","HALF","CLUTCH<br>OUT","SLOW","ENGINE<br>STBY/FI","DEAD<br>SLOW","EMERG<br>RUN/STOP","STOP","HALF","DEAD<br>SLOW","FULL","SLOW","FIXED<br>PITCH","COMBI","VAR<br>PITCH","PORT",'STBD','ORDERED<br>DIRECTION','RPM<br>% of MAX','NOTCH<br>% of MAX','PITCH<br>% of MAX','COMBINATOR',"ENGINE &nbsp;CONTROL"];
var chn=["控制<br>模式","前进四","离合器<br>闭合","前进三","离合器<br>断开","前进二","备车<br>完车","前进一","应急<br>启动/停止","停车","后退四","后退一","后退三","后退二","固定螺距","组合螺距","可变螺距","左","右",'车钟令<br>指示','转速<br>百分比','实际值<br>百分比',"螺距<br>百分比","操纵器","主 &nbsp;机 &nbsp;控 &nbsp;制"];
var temp=[];
switch(flg){
case "Eng":temp=eng; document.getElementById("control_mode_2").innerHTML= "ALARM<br>ACK";break;
case "CHN":temp=chn; document.getElementById("control_mode_2").innerHTML= "报警<br>确认";break;
}
//button
document.getElementById("control_mode").innerHTML = temp[0];
document.getElementById("full_1").innerHTML = temp[1];
document.getElementById("clutch_in_1").innerHTML = temp[2];
document.getElementById("half_1").innerHTML = temp[3];
document.getElementById("clutch_out_1").innerHTML = temp[4];
document.getElementById("slow_1").innerHTML = temp[5];
document.getElementById("engine_stby_1").innerHTML = temp[6];
document.getElementById("dead_slow_1").innerHTML = temp[7];
document.getElementById("emerg_run_1").innerHTML = temp[8];
document.getElementById("stop_1").innerHTML = temp[9];
document.getElementById("half_low_1").innerHTML = temp[10];
document.getElementById("dead_slow_low_1").innerHTML =temp[11];
document.getElementById("full_low_1").innerHTML = temp[12];
document.getElementById("slow_low_1").innerHTML = temp[13];



document.getElementById("full_2").innerHTML = temp[1];
document.getElementById("clutch_in_2").innerHTML = temp[2];
document.getElementById("half_2").innerHTML = temp[3];
document.getElementById("clutch_out_2").innerHTML= temp[4];
document.getElementById("slow_2").innerHTML  = temp[5];
document.getElementById("engine_stby_2").innerHTML = temp[6];
document.getElementById("dead_slow_2").innerHTML = temp[7];
document.getElementById("emerg_run_2").innerHTML = temp[8];
document.getElementById("stop_2").innerHTML= temp[9];
document.getElementById("dead_slow_low_2").innerHTML = temp[10];
document.getElementById("half_low_2").innerHTML = temp[11];
document.getElementById("slow_low_2").innerHTML = temp[12];
document.getElementById("full_low_2").innerHTML = temp[13];



document.getElementById("fixed_pitch").innerHTML = temp[14];
document.getElementById("combi").innerHTML = temp[15];
document.getElementById("var_pitch").innerHTML = temp[16];

//text
document.getElementById("port").innerHTML = temp[17];
document.getElementById("stbd").innerHTML = temp[18];
document.getElementById("ordered").innerHTML = temp[19];
document.getElementById("rpm").innerHTML = temp[20];
document.getElementById("notch").innerHTML = temp[21];
document.getElementById("pitch").innerHTML = temp[22];
document.getElementById("comb").innerHTML = temp[23];
document.getElementById("title2").innerHTML = temp[24];


temp.length=0;
}

		

	



function onepanel3(flg){
    var eng=["HEAVE","HOLD","LETGO","SLACK","ALARM<br>ACK","AUTO","ANCHOR CONTROL","SOUND SIGNALS","PORT","STBD","SPD(m/min)","DIR(deg)","TENSION(t)","LENG(ah)","HORN","PERIOD"];
    var chn=["绞锚","保持","解锚","松锚","报警<br>确认","自动","&nbsp;锚&nbsp;&nbsp;控&nbsp;&nbsp;制&nbsp;","&nbsp;声 &nbsp;&nbsp;号&nbsp;","左","右","速度(m/min)" ,"方向(deg)","力(t)","长度(ah)","号型","周期"];
    var temp=[];
    switch(flg){
    case "Eng":temp=eng;break;
    case "CHN":temp=chn;break;
    }
    //button
    document.getElementById("left_heave").innerHTML = temp[0];
    document.getElementById("left_hold").innerHTML = temp[1];
    document.getElementById("left_letgo").innerHTML = temp[2];
    document.getElementById("left_slack").innerHTML = temp[3];
	
    document.getElementById("alarm_ack_3").innerHTML = temp[4];
	
    document.getElementById("right_heave").innerHTML = temp[0];
    document.getElementById("right_hold").innerHTML = temp[1];
    document.getElementById("right_letgo").innerHTML = temp[2];
    document.getElementById("right_slack").innerHTML = temp[3];
	
    document.getElementById("horn_auto").innerHTML = temp[5];
    
    //image
    
    //text
	
	
	document.getElementById("title4").innerHTML = temp[6];
	document.getElementById("title5").innerHTML = temp[7];
	document.getElementById("port").innerHTML = temp[8];
	document.getElementById("stbd").innerHTML = temp[9];
	document.getElementById("spd").innerHTML = temp[10];
	document.getElementById("dir").innerHTML = temp[11];
	document.getElementById("ten").innerHTML = temp[12];
	document.getElementById("len").innerHTML = temp[13];
	document.getElementById("horn").innerHTML = temp[14];
	document.getElementById("per").innerHTML = temp[15];
    temp.length=0;
    
}

  // index4.html 是罗经 
function onepanel14(flg){
 
    
}

function onepanel5(flg){
    var eng=["KNOTS","M/S","FEET/S","WATER<br>TRACK","FATHON","METER","FEET","DALARM<br>ACK","DOPPLER LOG","ECHO SOUNDER","DIST(m)","AlmLimit(m)","url(img/ship/BShip_blue.png)","url(./img/six/GTblue.png)","url(./img/six/WTblue.png)"];
    var chn=["节","米/秒","英尺/秒","对水","英寻","米","英尺","报警<br>确认","&nbsp;计&nbsp;&nbsp;程&nbsp;&nbsp;仪&nbsp;","&nbsp;测&nbsp;&nbsp;深&nbsp;&nbsp;仪&nbsp;","距离(min)","报警值(m)","url(img/ship/chn/BShip_blue.png)","url(./img/six/chn/GTblue.png)","url(./img/six/chn/WTblue.png)"];
    var temp=[];
    switch(flg){
    case "Eng":temp=eng;break;
    case "CHN":temp=chn;break;
    }
//button
document.getElementById("fnots").innerHTML = temp[0];
document.getElementById("ms").innerHTML = temp[1];
document.getElementById("feets").innerHTML = temp[2];
document.getElementById("water_track").innerHTML = temp[3];

document.getElementById("fathom").innerHTML = temp[4];
document.getElementById("meter").innerHTML = temp[5];
document.getElementById("feet").innerHTML = temp[6];
document.getElementById("es_arm_ack").innerHTML = temp[7];



//text

document.getElementById("title6").innerHTML = temp[8];
document.getElementById("title7").innerHTML = temp[9];
document.getElementById("disttext").innerHTML = temp[10];
document.getElementById("alm").innerHTML = temp[11];

//image


document.getElementById('5').style.backgroundImage=temp[12];
document.getElementById('55').style.backgroundImage=temp[12];

document.getElementById('dopper_qt').style.backgroundImage=temp[13];
document.getElementById('dopper_wt').style.backgroundImage=temp[14];

}

function onepanel6(flg){
    var eng=["HP<br>7000","HP<br>4800","HP<br>3000","HP<br>1800","FULL","HALF","SLOW","STOP","SLOW","HALF","FULL","ALARM<br>ACK","YES","LET<br>GO","ALL<br>LETGO","TUG&nbsp;CONTROL","&nbsp;FORCE(t)&nbsp;","&nbsp;DIR&nbsp;SET&nbsp;"];
    var chn=["马力<br>7000","马力<br>4800","马力<br>3000","马力<br>1800","前进三","前进二","前进一","停止","后退一","后退二","后退三","报警<br>确认","确认","解掉","全部<br>解掉","&nbsp;拖&nbsp;&nbsp;轮&nbsp;&nbsp;控&nbsp;&nbsp;制&nbsp;","力(t)","方向设置"];
    var temp=[];
    switch(flg){
    case "Eng":temp=eng;break;
    case "CHN":temp=chn;break;
    }
//button
document.getElementById("hp7000").innerHTML = temp[0];
document.getElementById("hp4800").innerHTML = temp[1];
document.getElementById("hp3000").innerHTML = temp[2];
document.getElementById("hp1800").innerHTML = temp[3];
document.getElementById("tug_full").innerHTML = temp[4];
document.getElementById("tug_half").innerHTML = temp[5];
document.getElementById("tug_slow").innerHTML = temp[6];
document.getElementById("tug_stop").innerHTML = temp[7];
document.getElementById("tug_slow_low").innerHTML = temp[8];
document.getElementById("tug_half_low").innerHTML = temp[9];
document.getElementById("tug_full_low").innerHTML = temp[10];
document.getElementById("tug_alarm_ack").innerHTML = temp[11];
document.getElementById("tug_yes").innerHTML = temp[12];
document.getElementById("tug_let_go").innerHTML = temp[13];
document.getElementById("tug_let_all").innerHTML = temp[14];

//image

//text
document.getElementById("title8").innerHTML = temp[15];
document.getElementById("force").innerHTML = temp[16];
document.getElementById("dir").innerHTML = temp[17];
}

function onepanel7(flg){
    var eng=["PAY<br>OUT","P.OUT<br>STOP","HEAVE<br>3","HEAVE<br>2","HEAVE<br>1","STOP<br>0","SLACK<br>1","SLACK<br>2","ESLACK<br>3","ALARM<br>ACK","YES","LETGO","ALL<br>LETGO","LINE&nbsp;<br>CONTROL","&nbsp;FORCE(t)&nbsp;","&nbsp;LENGTH(m)&nbsp;","img/eight/BShip_blue.png"];
    var chn=["送出","停止<br>送出","绞3","绞2","绞1","停止","松1","松2","松3","报警<br>确认","确认","解掉","全部<br>解掉","<br>&nbsp;缆&nbsp;绳&nbsp;控&nbsp;制&nbsp;","力(t)","长度(m)","img/eight/chn/BShip_blue.png"];
    var temp=[];
    switch(flg){
    case "Eng":temp=eng;break;
    case "CHN":temp=chn;break;
    }
//button
document.getElementById("payout").innerHTML = temp[0];
document.getElementById("paystop").innerHTML = temp[1];
document.getElementById("heave_0").innerHTML = temp[2];
document.getElementById("heave_1").innerHTML = temp[3];
document.getElementById("heave_2").innerHTML = temp[4];
document.getElementById("stops_3").innerHTML = temp[5];
document.getElementById("slack_4").innerHTML = temp[6];
document.getElementById("slack_5").innerHTML = temp[7];
document.getElementById("slack_6").innerHTML = temp[8];
document.getElementById("line_alarm_ack").innerHTML = temp[9];
document.getElementById("line_yes").innerHTML = temp[10];
document.getElementById("line_let_go").innerHTML = temp[11];
document.getElementById("line_let_all").innerHTML = temp[12];

//image

//text
document.getElementById("title9").innerHTML = temp[13];
document.getElementById("force").innerHTML = temp[14];
document.getElementById("len").innerHTML = temp[15];


document.getElementById("lineimg").src=temp[16];

}

function onepanel8(flg){
    var eng=["POWER","FULL","HALF","SLOW","DEAD<br>SLOW","STOP","DEAD<br>SLOW","SLOW","HALF","FULL","ALARM<br>ACK","THRUSTER&nbsp;CONTROL","PORT","STBD","BOW","STERN"];
    var chn=["电源","前进四","前进三","前进二","前进一","停止","前进一","前进二","前进三","前进四","警报<br>确认","&nbsp;侧&nbsp;推&nbsp;控&nbsp;制&nbsp;","左","右","船首","船尾"];
    var temp=[];
    switch(flg){
    case "Eng":temp=eng;break;
    case "CHN":temp=chn;break;
    }
//button
document.getElementById("First_power").innerHTML = temp[0];
document.getElementById("Second_power").innerHTML = temp[0];

document.getElementById("First_full_4").innerHTML = temp[1];
document.getElementById("First_full_3").innerHTML = temp[2];
document.getElementById("First_full_2").innerHTML = temp[3];
document.getElementById("First_full_1").innerHTML = temp[4];
document.getElementById("First_stop_0").innerHTML = temp[5];
document.getElementById("First_slow_1").innerHTML = temp[6];
document.getElementById("First_slow_2").innerHTML = temp[7];
document.getElementById("First_slow_3").innerHTML = temp[8];
document.getElementById("First_slow_4").innerHTML = temp[9];

document.getElementById("Second_full_4").innerHTML = temp[1];
document.getElementById("Second_full_3").innerHTML = temp[2];
document.getElementById("Second_full_2").innerHTML = temp[3];
document.getElementById("Second_full_1").innerHTML = temp[4];
document.getElementById("Second_stop_0").innerHTML = temp[5];
document.getElementById("Second_slow_1").innerHTML = temp[6];
document.getElementById("Second_slow_2").innerHTML = temp[7];
document.getElementById("Second_slow_3").innerHTML = temp[8];
document.getElementById("Second_slow_4").innerHTML = temp[9];

document.getElementById("ALARM_ACK").innerHTML = temp[10];


document.getElementById("title10").innerHTML = temp[11];
document.getElementById("port").innerHTML = temp[12];
document.getElementById("stbd").innerHTML = temp[13];
document.getElementById("bow").innerHTML = temp[14];
document.getElementById("stern").innerHTML = temp[15];

//image

//text


}

   


   



     


   



